﻿@model SenileCoderMvc.Library.Models.CodeSnippet
<legend>CodeSnippet</legend>
@Html.HiddenFor(model => model.Id)
<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name, "Please check the name.")
</div>
<div class="editor-label">
    @Html.LabelFor(model => model.Snippet)
</div>
<div class="editor-field">
    @Html.TextAreaFor(model => model.Snippet, 10, 80, null)
</div>
